// 加载，全局设置
import setting from "../utils/setting";
// 使用变量
let BASE_URL = setting.constant.BASE_URL;
let PROJECT_NAME = setting.constant.PROJECT_NAME;  // /driver--司机端；/shipper 货主端；/carrier 运输公司端; 推广端-promoter
// #ifdef H5
if(setting.constant.IS_PROXY) {
	BASE_URL = "/api";	
}
// #endif

// API的常量
const apiNames = {
	"OSSSIGN_CONFIG":  BASE_URL + PROJECT_NAME + "/base/oss/sign",   	// 上传阿里云附件信息，数字签名API -POST
	"OSSSIGN_OSSID":  BASE_URL + PROJECT_NAME + "/base/oss/ossId",   	// 获取阿里云附件名称 -POST
	"SMS_VERIFY_CODE": BASE_URL + PROJECT_NAME + "/identity/auth/verifyCodeTime",   // 获取验证码间隔时间 -POST
	"SMS_SEND": BASE_URL + PROJECT_NAME  + "/identity/auth/getVerifyCode",   		// 登陆、绑定手机短信下发 -POST
	"SMS_LOGIN": BASE_URL + PROJECT_NAME + "/identity/auth/loginByVerifyCode",   	//登陆 -POST
	"SMS_PSD_LOGIN": BASE_URL + PROJECT_NAME + "/identity/auth/login",   			//登陆 -POST
	"SMS_AUTO_LOGIN": BASE_URL + PROJECT_NAME + "/identity/auth/logInfo",   		// 自动登陆-用户信息 -POST
	
	"USER_INFO": BASE_URL + PROJECT_NAME + "/promotion/promoter/overview",					// 推广人信息概览 -POST
	"ORDER_REGISTER_LIST": BASE_URL + PROJECT_NAME + "/promotion/promoter/registerPage",  	// 首次注册通过-列表 -POST
	"ORDER_FINISHED_LIST": BASE_URL + PROJECT_NAME + "/promotion/promoter/orderPage",  		// 首次注册订单完成-列表 -POST
	"APP_VERSION_INFO":  BASE_URL + PROJECT_NAME + "/base/constant/appVersion",   			// 分享下载APP信息 -POST
	
	"KH_LOGIN": BASE_URL + PROJECT_NAME + "/sys/login",  									// 登录用户
	"KH_CARD_LIST": BASE_URL + PROJECT_NAME + "/sys/expcard/list",							// 【体验卡】列表 -POST
	"KH_SHOP_LIST": BASE_URL + PROJECT_NAME + "/sys/shop/list",   							// 【门店】列表（参数：pageIndex、pageSize） -POST
	"KH_ORDERSDTL_LIST": BASE_URL + PROJECT_NAME + "/sys/ordersdtl/getHexiaoDtlList",   	// 核销产品列表 -POST
	"KH_ORDERSDTL_SAVE": BASE_URL + PROJECT_NAME + "/sys/ordersdtl/saveservicecount",   	// 设置服务次数 -POST
	"KH_ORDERSDTL_FREE_SAVE": BASE_URL + PROJECT_NAME + "/sys/ordersdtl/savefreecount",   	// 保存赠送商品数量及相应服务次数接口 -POST
	"KH_ORDERSDTL_PROJECT": BASE_URL + PROJECT_NAME + "/sys/ordersdtl/listextraproject",   // 附加项目列表 -POST
	"KH_SIGNSERVICE_SAVE": BASE_URL + PROJECT_NAME + "/sys/servicesign/save",   			// 签名后生成图片-并存储所有form数据 -POST
	"KH_SIGNSERVICE_LIST": BASE_URL + PROJECT_NAME + "/sys/servicesign/list",   			// 服务记录列表 -POST
	"KH_SIGNSERVICE_DETAIL": BASE_URL + PROJECT_NAME + "/sys/servicesign/info/",   			// 服务记录-详情 -{id}-POST
	"KH_EXPCARDSALE_ADD": BASE_URL + PROJECT_NAME + "/sys/expcardsale/add",   				// 体验卡销售模块-新增 -POST
	"KH_EXPCARDSALE_LIST": BASE_URL + PROJECT_NAME + "/sys/expcardsale/list",   			// 体验卡销售历史列表 -POST
	
	"TEXT_SERVICE": BASE_URL + PROJECT_NAME + "/base/agreement/userAgreement", 	// 服务协议（用户协议）html -POST
	"TEXT_PRIVACY": BASE_URL + PROJECT_NAME + "/base/agreement/privacyPolicy", 	// 隐私政策（用户协议）html -POST
	"TEXT_DISCLAIMER": BASE_URL + PROJECT_NAME + "/base/agreement/disclaimer", 	// 免责协议（用户协议）html -POST
};

// 对外导出
export default {
	apiNames
}